import NumberInput from './NumberInput'
import StringInput from './StringInput'
import BoolCheckbox from './BoolCheckbox'
import DateInput from './DateInput'
import EnumSelect from './EnumSelect'
import AutoInput from './AutoInput'
import DatasourceSelect from './DatasourceSelect'
import ForeignSelect from './ForeignSelect'
import MultipleSelect from './MultipleSelect'

const components = {
  NumberInput,
  StringInput,
  BoolCheckbox,
  DateInput,
  EnumSelect,
  AutoInput,
  DatasourceSelect,
  ForeignSelect,
  MultipleSelect
}

export default function install(Vue) {
  Object.keys(components).forEach(key => {
    Vue.component(key, components[key])
  })
}
